<{php}>

/******* CONFIGURATIONS *********/

$colors = array(
	'bg' => '#cccccc' ,
	'main' => '#ffffff' ,
	'main_rev' => '#666666' ,
	'header' => '#2f5376' ,
	'header_rev' => '#ffffff' ,
	'link' => '#666666' ,
	'link_hover' => '#ff6600' ,
	'impact' => '#2f5376' ,
	'impact_rev' => '#ffffff' ,
	'title' => '#dddddd' ,
	'title_rev' => '#639ace' ,
	'head' => '#c2cdd6' ,
	'even' => '#dee3e7' ,
	'odd' => '#e9e9e9' ,
	'error' => '#ffcccc' ,
	'confirm' => '#ddffdd' ,
	'result' => '#dddddd' ,
	'border' => '#999999' ,
) ;

$fonts = array(
	'main' => '"Verdana","Arial","Helvetica","sans-serif"' ,
	'monospace' => '"Courier New","Courier","monospace"' ,
) ;

$sizes = array(
	'body_min_width' => 750 ,
	'body_max_width' => 1024 ,
	'block_left_width' => 170 ,
	'block_right_width' => 170 ,
	'header_height' => 80 ,
	'footer_height' => 23 ,
) ;

$this->assign( array(
	'color' => $colors ,
	'font' => $fonts ,
	'size' => $sizes ,
) ) ;

<{/php}>

/************** Generic Rules *************/
html, img {
  margin: 0;
  padding: 0;
  border: 0;
}

p  {}
h1 { margin:3px 0; padding:0; font-size:1.3em; }
h2 { margin:2px 0; padding:0; font-size:1.2em; }
h3 { margin:1px 0; padding:0; font-size:1.1em; }
h4, h5 { margin:0; padding:0; font-size:1em; }

a {color: <{$color.link}>; text-decoration: none; font-weight: bold; background-color: transparent;}
a:hover {color: <{$color.link_hover}>;}

ul { margin: 2px; padding: 2px; list-style: decimal inside; text-align: left;}
li { margin-left: 16px; list-style: disc outside; color: <{$color.main_rev}>}
dl, dt { margin:2px; padding:2px; }
dd { margin-left:1em; color: <{$color.main_rev}>; }

table {width: 100%; margin: 5; padding: 5; font-size: small}
th {background-color: <{$color.impact}>; color: <{$color.impact_rev}>; padding : 2px; vertical-align : middle; font-family: <{$font.main}>;}
td {padding: 0; border-width: 0; vertical-align: top; font-family: <{$font.main}>;}

em { font-style: italic; }
strong { font-weight: bold; }

.floatLeft { float: left; }
.floatRight { float: right; }
.divCenter { margin-left:auto; margin-right:auto; }
.clear { clear: both; }
.alignRight { text-align: right; }
.alignLeft { text-align: left; }
.alignCenter {text-align: center; }

.small {font-size: .9em;}
.large { font-size: 1.2em; }

/*************** Header and Footer elements *****************/
#TopHeader {
	width: 100%;
	color: <{$color.normal}>;
	border-bottom: 1px solid <{$color.border}>;
	background: <{$color.title}>;
}
#TopHeader h1 { margin: 0; padding: 2px; font-size: 1em; background-color: <{$color.title}>; }

#Header {
	width: 100%;
	color: <{$color.header_rev}>;
	height: <{$size.header_height}>px;
	border-bottom: 1px solid <{$color.border}>;
	background: <{$color.header}>;
	/*background: url(<{$xoops_imageurl}>images/header_bg.gif) <{$color.header}> repeat-x left top;*/
}
<{if $ua_type == "IE"}>
#Header { \height: <{$size.header_height+1}>px; } /* for IE5 */
<{/if}>
#Header img { float: left; margin: 0; }

#Footer {
	width: 100%;
	clear: both;
	height: <{$size.footer_height}>px;
	position: relative;
	border-top: 1px solid <{$color.border}>;
	border-bottom: 1px solid <{$color.border}>;
	text-align: center;
	background: <{$color.title}>;
	color: gray;
}
<{if $ua_type == "IE"}>
#Footer { \height: <{$size.header_height+1}>px; } /* for IE5 */
<{/if}>


/******************* xoops generic rules *****************/
input.formButton {}

.outer {border: 1px solid <{$color.border}>;}
.head {background-color: <{$color.head}>; padding: 5px; font-weight: bold;}
.even {background-color: <{$color.even}>; padding: 5px;}
.odd {background-color: <{$color.odd}>; padding: 5px;}
.foot {background-color: <{$color.head}>; padding: 5px; font-weight: bold;}
tr.even td {background-color: <{$color.even}>; padding: 5px;}
tr.odd td {background-color: <{$color.odd}>; padding: 5px;}

div.errorMsg { background-color: <{$color.error}>; text-align: center; border: 1px solid <{$color.border}>; font-weight: bold; padding: 10px;}
div.confirmMsg { background-color: <{$color.confirm}>; text-align: center; border: 1px solid <{$color.border}>; font-weight: bold; padding: 10px;}
div.resultMsg { background-color: <{$color.result}>; text-align: center; border: 1px solid <{$color.border}>; font-weight: bold; padding: 10px;}

div.xoopsCode { background: <{$color.main}>; border: 1px solid <{$color.border}>; font-family: <{$font.monospace}>; padding: 0px 6px 6px 6px;}
div.xoopsQuote { background: <{$color.main}>; border: 1px solid <{$color.border}>; font-family: <{$font.monospace}>; padding: 0px 6px 6px 6px;}

div#Breadcrumbs { margin: 0 0 12px 12px; border-bottom: 1px solid <{$color.border}>; }
div#Breadcrumbs a { font-weight: bold; }

.new1{
    font-size: 8pt;
    font-weight: bold;
    background-color:#FF0000;
    color:#FFFFFF;
    padding:2px 2px 2px 2px;
    margin:2px 2px 2px 2px;
}
.new2{
    font-size: 8pt;
    font-weight: bold;
    color:#FF0000;
    padding:2px 2px 0px 2px;
    margin:2px 2px 2px 2px;
}


/******************* xoops module/system rules *****************/
/* news module */
.item {border: 1px solid <{$color.border}>;}
.itemHead {padding: 3px; background-color: <{$color.impact}>; color: <{$color.impact_rev}>;}
.itemInfo {text-align: right; padding: 3px; background-color: <{$color.odd}>;}
.itemTitle a {font-size: 130%; font-weight: bold; font-variant: small-caps; color: <{$color.impact_rev}>; background-color: transparent;}
.itemPoster {font-size: 90%; font-style:italic;}
.itemPostDate {font-size: 90%; font-style:italic;}
.itemStats {font-size: 90%; font-style:italic;}
.itemBody {padding-left: 5px;}
.itemText {margin-top: 5px; margin-bottom: 5px; line-height: 1.5em;}
.itemText:first-letter {font-size: 133%; font-weight: bold;}
.itemFoot {text-align: right; padding: 3px; background-color: <{$color.odd}>;}
.itemAdminLink {font-size: 90%;}
.itemPermaLink {font-size: 90%;}

/* system comments */
.comTitle {font-weight: bold; margin-bottom: 2px;}
.comText {padding: 2px;}
.comUserStat {font-size: 10px; color: <{$color.main_rev}>; font-weight:bold; border: 1px solid <{$color.border}>; background-color: <{$color.main_rev}>; margin: 2px; padding: 2px;}
.comUserStatCaption {font-weight: normal;}
.comUserStatus {margin-left: 2px; margin-top: 10px; color: <{$color.main_rev}>; font-weight:bold; font-size: 10px;}
.comUserRank {margin: 2px;}
.comUserRankText {font-size: 10px;font-weight:bold;}
.comUserRankImg {border: 0;}
.comUserName {}
.comUserImg {margin: 2px;}
.comDate {font-weight: normal; font-style: italic; font-size: smaller}
.comDateCaption {font-weight: bold; font-style: normal;}






/******************* site specific rules *****************/

body {
	margin: 0;
	padding: 0;
	background: <{$color.bg}>; /* url(<{$xoops_imageurl}>images/xxxxx.gif) repeat-y left top; */ /* this BG tiles the area outside the columns */
	color: <{$color.main_rev}>;
	font-family: <{$font.main}>;
	font-size: 100.01%; /* this body font-size fixes an IE bug and maintains x-browser uniformity */
}

body.showBlockL1R1,
body.showBlockL1R0,
body.showBlockL0R1,
body.showBlockL0R0 { 			/* fix for pop-up window to expand full width */
	padding: 0 <{$size.body_min_width/2}>px;
	text-align: center;
}

#Sizer {
	margin: 0 auto;
	padding: 0;
	width: 100%; 				/* this value controls liquidity; 0% = full rigid, 100% = full liquid */
	text-align: left; 			/* centers the #sizer element in IE5.x/win */
	max-width: <{$size.body_max_width-$size.body_min_width}>px;
}
<{if $ua_type == "IE"}>
#Sizer {
	width:expression(document.body.clientWidth > <{$size.body_max_width}> ? "<{$size.body_max_width-$size.body_min_width}>" : "100%" );
/* CSS comments are safe here, but no html comments inside the Conditional Comment! */
}
<{/if}>

#Expander { 					/* Any % height here causes IE to lose the neg right margin */
	margin: 0 -<{$size.body_min_width/2}>px; 			/* neg side margin values should be < or = to side body padding */
	min-width: <{$size.body_min_width}>px; 			/* This prevents Safari from losing the negative margins in narrow windows */
	position: relative; 		/* makes #expander visible outside #sizer in IEwin */

}

/* Holly hack for IE \*/
* html #Expander { height: 0; }
/* #Expander must have "height: 0" in IEwin bug fixing */

#Filler1 {
	position: relative;
	/* this positioning may be needed for IEwin if page is to contain positioned elements */
	/*background: #fff url(<{$xoops_imageurl}>images/bg_leftcolumn.gif) repeat-y 0 0;*/
	/* this BG tiles the backgroung and the left column */
	<{if $ua_type == "IE"}>
	font-size: 83%;
	<{else}>
	font-size: 80%;
	<{/if}>
	background-color: <{$color.main}>;
	border-left: 1px solid <{$color.border}>;
	border-right: 1px solid <{$color.border}>;
}
#Filler2 {
	position: relative; /* extra insurance against bugs in IEwin */
	/*background: #fff url(<{$xoops_imageurl}>images/bg_rightcolumn.gif) 100% 0 repeat-y;*/
	/* this BG tiles the right column */
}

/****************** Main Page Structure *****************/

#OuterWrapper {
	background: transparent; 		/* this BG tiles the center column */
}

.showBlockL1R1 #OuterWrapper {		/* 3 columns */
	border-left: 1px solid <{$color.border}>; 	/*** Critical left divider dimension value ***/
	border-right: 1px solid <{$color.border}>; 	/*** Critical right divider dimension value ***/
	margin-left: <{$size.block_left_width}>px; 			/*** Critical left col width value ***/
	margin-right: <{$size.block_right_width}>px; 			/*** Critical right col width value ***/
}
.showBlockL1R0 #OuterWrapper {		/* 2 cols of left and center */
	margin-left: <{$size.block_left_width}>px;
	border-left: 1px solid <{$color.border}>;
}
.showBlockL0R1 #OuterWrapper {		/* 2 cols of center and right */
	margin-right: <{$size.block_right_width}>px;
	border-right: 1px solid <{$color.border}>;
}
.showBlockL0R0 #OuterWrapper {		/* center only */
}

#InnerWrapper {						/* wrapper including center and left columns */
	float: left;
	width: 100%;
}

#Center {
	float: right;
	width: 100%;
}
<{if $ua_type == "IE"}>
#Center { height: 1%; } /* combat IE's 3 pixel jog */
<{/if}>

#Left {
	float: left;
	position: relative; 			/* Needed for IE/win */
	width: <{$size.block_left_width}>px; 					/*** Critical left col width value ***/
	margin-left: -<{$size.block_left_width+1}>px;			/*** Critical left col width value ***/
									/*** Critical left divider dimension value ***/
}

#Right {
	float: right;
	position: relative; 			/* Needed for IE/win */
	width: <{$size.block_right_width}>px; 					/*** Critical right col width value ***/
	margin-right: -<{$size.block_right_width+1}>px; 			/*** Critical right col width value ***/
	margin-left: 1px; 				/*** Critical right divider dimension value ***/
}

#ContainerCenter,
#ContainerLeft,
#ContainerRight {
	position: relative;
	/*margin: 10px;*/
}

/************** Module and Blocks ****************/
#ModuleContents {
	padding: 5px;
	line-height: 1.5em;
}

/* columns of xoops */
#CenterCColumn { padding: 0 5px; }
#CenterBlockWrapper {
	position: relative;
}
#CenterLColumn { float:left; width:48%; padding-left:5px; }
#CenterRColumn { float:right; width:48%; padding-right:5px; }

#Left .blockTitle,
#Right .blockTitle {
	padding: 3px;
	background-color: <{$color.title}>;
	color: <{$color.title_rev}>;
	font-weight: bold;
	font-size: 1em;
	/* border-top: 1px solid <{$color.border}>; */
}
#Center .blockTitle {
	margin: 0;
	padding: 3px;
	background-color: <{$color.title}>;
	color: <{$color.title_rev}>;
	font-weight: bold;
}

.blockContent {
	padding: 3px 3px 9px 3px;
	line-height: 1.5em;
}
#Center .blockContent {
	margin-bottom: 2px;
}

/************** Special Fixes *************/

#OuterWrapper { word-wrap: break-word; }
										/* Prevents long urls from breaking layout in IE, must
										be hidden in a conditional comment for CSS to validate */

/* img { max-width: 100%; }	 */ /* prevents oversize images from breaking layout in browsers that support max-width */

/* \*/
* html #Filler1,
* html #Filler2,
* html #OuterWrapper a,
* html #ContainerLeft,
* html #ContainerRight,
* html #OuterWrapper,
* html h2,
* html #mainmenu a,
* html #usermenu a
{height: 1%;}
/* Holly hack */

/*** Variance fixes for IEwin ***/

/*\*/
* html #OuterWrapper p {margin-right: -6px;}
/* */


/**************** Utility Rules *******************/

/*\*/ /*/
#mainmenu a:hover,
#usermenu a:hover {
	position: relative;
}
/* this fixes an IEmac hover bug in the left column, hidden from other browsers */


.brclear { /* Use a break with this class to clear float containers */
  clear:both;
  height:0;
  margin:0;
  font-size: 1px;
  line-height: 0;
}

.clearFix:after {						/* www.positioniseveytthing.net */
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.clearFix { display: inline-table; }



/**************** Custom Rules of each sites *******************/